package com.csi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

/**
 * 行程表
 */
@Schema(description = "行程信息")
@Data
public class Trip {
    @Schema(description = "行程ID", required = true)
    private long id; //行程id

    @Schema(description = "活动描述", required = true)
    private String activeDesc; //活动描述

    @Schema(description = "活动开始时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS") //转换时间格式
    private Timestamp startDate; //活动开始时间

    @Schema(description = "活动结束时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS") //转换时间格式
    private Timestamp endDate; //活动结束时间

    @Schema(description = "景点ID", required = true)
    private long travelAttractionId; //景点id

    @Schema(description = "酒店ID", required = true)
    private long hotelId; //酒店id

    @Schema(description = "套餐ID", required = true)
    private long travelPackageId; //套餐id

}
